<template>
	<view>
		<view class="proList">
			<view v-for="(item,index) in proList" :key="item.proid">
				<text>{{item.proname}}</text>
				<image :src="item.img1" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script setup>
import { onMounted, ref } from 'vue';
const proList = ref([])
	const getProList=(count,limitNum)=>{
		uni.request({
			url:'http://47.94.6.186:3001/api/pro/list',
			method:"GET",
			params:{count,limitNum},
			success:res=>{
				console.log(res.data);
				if(res.data.code==200){
					console.log(res.data.message);
					proList.value=res.data.data
				}
			}
		})
	}
	onMounted(()=>{
		getProList()
	})
</script>

<style>
	       
</style>
